export default ({ request }) => ({
  /**
   * 获取问题列表
   * @returns 
   */
  GET_QUESTION_LIST(data) {
    return request({
      url: "/budwk/smartlc/lc/infomng/list",
      method: "post",
      data: data,
    });
  },
  /**
   * 获取待我处理的消息列表
   * @returns 
   */
  GET_MY_QUESTION_LIST(data) {
    return request({
      url: "/budwk/smartlc/lc/infomng/my/list",
      method: "post",
      data: data,
    });
  },
  /**
   * 创建问题
   * @returns 
   */
  CREATE_QUESTION(data) {
    return request({
      url: "/budwk/smartlc/lc/infomng/create",
      method: "post",
      data: data,
    });
  },
  /**
   * 删除问题
   * @returns 
   */
  DELETE_QUESTION(id) {
    return request({
      url: "/budwk/smartlc/lc/infomng/delete/" + id,
      method: "delete",
    });
  },
  /**
   * 修改问题
   * @returns 
   */
  EDIT_QUESTION(data) {
    return request({
      url: "/budwk/smartlc/lc/infomng/update",
      method: "post",
      data: data,
    });
  },
  /**
   * 获取问题关联用户列表
   * @returns 
   */
  GET_QUESTION_USER_LIST(unitId) {
    return request({
      url: "/budwk/smartlc/lc/infomng/user/list",
      method: "post",
      data: {unitId},
    });
  },
  /**
   * 获取问题源列表
   * @returns 
   */
  GET_QUESTION_TYPE_LIST(type) {
    return request({
      url: "/budwk/smartlc/lc/quality/mng/list",
      method: "post",
      data: {pageNo:1, pageSize: 100000, type},
    });
  },
});
